<?php
/**
 * Created by PhpStorm.
 * User: silenceper
 * Date: 2016/11/28
 * Time: 上午10:37
 */

namespace common\entities\myhtsq;


use common\entities\ConfigEntity;

/**
 * This is the model class for table "myscrm_project_contact_change_log".
 *
 * @property string $id
 * @property string $org_id
 * @property string $project_id
 * @property string $custome_manager_data
 * @property string $deliver_data
 * @property string $created_by
 * @property string $created_at
 * @property string $updated_at
 */
class ProjectContactChangeLogEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_project_contact_change_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['custome_manager_data', 'deliver_data'], 'string'],
            [['created_at', 'updated_at'], 'safe'],
            [['id', 'org_id', 'project_id', 'created_by'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'org_id' => '租户ID',
            'project_id' => '项目ID',
            'custome_manager_data' => '客户经理json数据',
            'deliver_data' => '交付人json数据',
            'created_by' => '操作人',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}